package com.bw.module_attendance.repo


import com.bw.lib_common.entity.BaseResponse
import com.bw.lib_common.model.BaseRepository
import com.bw.lib_http.OkHttpClientManager
import com.bw.module_attendance.api.PatrolApiService
import com.bw.module_patrol.entity.PatrolEntity
/**
 * 工单-智慧园区-巡逻管理
 */
class PatrolRepo :BaseRepository<PatrolApiService>(){
    override fun createApiServer(): PatrolApiService = OkHttpClientManager.retrofitInstance.create(PatrolApiService::class.java)


    suspend fun getPatrol(): BaseResponse<List<PatrolEntity>> = apiService.getPatrol()


    suspend fun updatePatrol(id:Int, patrolEntity: PatrolEntity): BaseResponse<PatrolEntity> = apiService.updatePatrol(id, patrolEntity)

}